﻿namespace PMS.Services.Utils
{
    public interface IEventDispatcher
    {
        /// <summary>
        /// 消息驱动统一调用接口，实现事务驱动一致性解偶
        /// </summary>
        /// <typeparam name="BaseDomainEvent"></typeparam>
        /// <param name="domainEvent"></param>
        void Dispatch<TEvent>(TEvent domainEvent) where TEvent : BaseDomainEvent;
    }
}
